<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="com.mvc.security.model.Menu"%>
<%@ include file="/pages/common/header.jsp"%>
</head>
<body>
    <div class="contentBody contentborder">
        <div class="tab-pane" id="tabPane">
            <div id="message"><%=message %></div>
            <div class="tab-page" id="tabPage1">
                <h1 class="tab">已收款总帐</h1>
                <div class="contentborder eXtremeTable">
                    <h3 style="margin: 5px;">总览</h3>
                    <table style="width: 100%;" class="tableRegion">
                        <tr>
                            <td class="tableHeader" style="width: 40%">
                                <label>货币</label>
                            </td>
                            <td class="tableHeader" style="width: 60%">
                                <label>总计</label>
                            </td>
                        </tr>
                        <tbody class="tableBody" >
                        <c:forEach varStatus="num" var="item" items="${currencies}">
                        <tr class="${num.index % 2 == 0 ? 'even' : 'odd'}"  onmouseover="this.className='highlight'"  onmouseout="this.className='${num.index % 2 == 0 ? 'even' : 'odd'}'">
                            <td>
                                ${item.name}
                            </td>
                            <td>
                                <fmt:formatNumber value="${item.remark}" pattern="#,###.###"/> 
                            </td>
                        </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <h3 style="margin: 5px;">客户汇总</h3>
                    <table style="width: 100%;" class="tableRegion">
                        <tr>
                            <td class="tableHeader" style="width: 40%">
                                                                                                            客户
                            </td>
                            <c:forEach varStatus="num" var="item" items="${currencies}">
                            <td class="tableHeader">
                                ${item.name} 
                            </td>
                            </c:forEach>
                        </tr>
                        <c:forEach varStatus="num" var="item" items="${customerSum}">
                        <tr class="${num.index % 2 == 0 ? 'even' : 'odd'}"  onmouseover="this.className='highlight'"  onmouseout="this.className='${num.index % 2 == 0 ? 'even' : 'odd'}'">
                            <td>
                                ${item[0].name}
                            </td>
                            <c:forEach varStatus="num" var="item2" items="${currencies}">
                            <td>
                                <fmt:formatNumber value="${item[1][item2.value-1]}" pattern="#,###.###"/>
                            </td>
                            </c:forEach>
                        </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </div>
    </div>
</html>